quit -sim

set QUESTA_HOME D:/questasim64_2020.1
set UVM_VERSION uvm-1.1d
set UVM_HOME $QUESTA_HOME/verilog_src/$UVM_VERSION
set WORK_HOME section_2_2_1

echo $UVM_HOME

if [file exists work] {
  vdel -all
}

#1.  Create project
vlib work
 
#2.  Compile hello_world.sv
vlog -f $WORK_HOME/filelist.f

#3.  Sim work.hello_world_example
#vsim -64 -c -sv_lib $QUESTA_HOME/$UVM_VERSION/win64/uvm_dpi  work.hello_world
vsim -sv_lib $QUESTA_HOME/$UVM_VERSION/win64/uvm_dpi -c top_tb
 
#4.  Run test 1000ns
#run 1000
run -all
 
#5. Quit
#quit -sim
#quit -f
 